import { Component, OnInit } from '@angular/core';

@Component({
  selector: 'app-pipe',
  templateUrl: './pipe.component.html',
  styleUrls: ['./pipe.component.css']
})
export class PipeComponent implements OnInit {
  private sex='';
  private contacts=[{name:'王五'},{name:"张小"},{name:"小王"},{name:"李五"}];

  constructor() { }

  ngOnInit() {
  }
  addcontact(name){
  	this.contacts.push({name:name})
  }

}
